# -*- coding: utf-8 -*-
import os
import arcpy


def OutputRaster(inputPath, outputPath, type):
    if not os.path.exists(outputPath):
        os.makedirs(outputPath)
    mp = ['2', '6', '7']
    cu = ['0', '1', '2', '10']
    for i in mp:
        for j in cu:
            mp_cu = i + j
            input = inputPath + mp_cu + ".txt"
            output = outputPath + mp_cu
            arcpy.ASCIIToRaster_conversion(input, output, type)
